package com.miao.util.base.dao;

import java.util.List;
import java.util.Map;

/**
 * @author Created by Miaosk
 * @date Created on 2015/5/19.
 */
public interface Dao<T> {
    public int save(T t);

    public int delete(Map map);

    public int deleteBunch(int[] id);

    public int deleteById(int id);

    public int deleteByUUID(String uuid);

    public int update(T t);

    public T find(Map map);

    public T findById(int id);

    public T findByUUID(String uuid);

    public T findByName(String name);

    public List<T> list(Map map);

    int count(Map map);
}
